﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        th {
            text-align:center;
            width:200px;
        }
        td {
            text-align:center;
        }
    </style> 
    <asp:Button runat="server" Text="添加" ID="btnAdd" OnClick="btnAdd_Click" />
    <asp:GridView runat="server" ID="gvl" AutoGenerateColumns="false" OnRowCancelingEdit="gvl_RowCancelingEdit" OnRowDeleting="gvl_RowDeleting" OnRowEditing="gvl_RowEditing" OnRowUpdating="gvl_RowUpdating">
    
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" />
            <asp:BoundField DataField="Title" HeaderText="标题" />
            <asp:BoundField DataField="Content" HeaderText="内容" />
            <asp:BoundField DataField="Author" HeaderText="作者" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" />
            <asp:CommandField ShowCancelButton="true" ShowDeleteButton="true" ShowEditButton="true" HeaderText="操作" />
        </Columns>
    </asp:GridView>
    
    
   
</asp:Content>
